$.ajaxSetup ({cache: false});
var ajax_load = "<img class='loading' src='modules/reequipment/xarimages/ajax-loader.gif' alt='loading...' />";

function CreatePM(equipment_id, model_id, area_id, schedule_id){
    var loadUrl = 'index.php?module=reequipment&type=user&func=pm&phase=create&pageName=module&equipment_id='+equipment_id+'&model_id='+model_id+'&area_id='+area_id+'&schedule_id='+schedule_id;
    $("#result_"+schedule_id).html(ajax_load);
    $.get(
        loadUrl,
        {language: "php", version: 5},
        function(responseText){
            $("#result_"+schedule_id).html(responseText);
        },
        "html"
    );
 }

function DeletePM(equipment_id, model_id, area_id, schedule_id, maintenance_id){
    var loadUrl = 'index.php?module=reequipment&type=user&func=pm&phase=delete&pageName=module&maintenance_id='+maintenance_id+'&equipment_id='+equipment_id+'&model_id='+model_id+'&area_id='+area_id+'&schedule_id='+schedule_id;
    $("#result_"+schedule_id).html(ajax_load);
    $.get(
        loadUrl,
        {language: "php", version: 5},
        function(responseText){
            $("#result_"+schedule_id).html(responseText);
        },
        "html"
    );
 }